from django.contrib import admin
from .models import Feedback

@admin.register(Feedback)
class FeedbackAdmin(admin.ModelAdmin):
    list_display = ('user', 'type', 'title', 'status', 'priority', 'view_count', 'satisfaction_score', 'created_at')
    list_filter = ('type', 'status', 'priority', 'created_at')
    search_fields = ('title', 'user__username')
    readonly_fields = ('view_count', 'response_time', 'satisfaction_score')